import { config, Base_Api } from '../../config/index';







/** 提交预约信息 */
export function post_appointmentInfo(data) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: Base_Api + "/post_appointment_info",
      method: "POST",
      data: data,
      success: (res) => {
        resolve(res)
      },
      fail: (err) => {
        reject(err)
      }
    })
  })

}


/** 获取预约记录---根据手机号 */
export function get_appointment_info_by_tel(data) {
  return new Promise((resolve, reject) => {
    wx.request({
      url: Base_Api + "/get_appointment_info_by_tel",
      method: "POST",
      data: data,
      success: (res) => {
        resolve(res)
      },
      fail: (err) => {
        reject(err)
      }
    })
  })

}


